<script setup lang="ts">
	import OwnNavBar from './components/OwnNavBar.vue'
	import {onLoad} from '@dcloudio/uni-app'
	import {getBanner} from '@/apis/home'
	import {ref} from 'vue'
	import type {BannerItem} from '@/types/home'
	
	const bannerList = ref<BannerItem[]>([])
	const getBannerList = async ()=>{
		let res = await getBanner()
		bannerList.value = res.result;
	}
	
	onLoad(()=>{
		getBannerList()
	})
</script>

<template>
	<OwnNavBar />
	<XtxSwiper :list="bannerList" />
	<view class="index">index</view>
</template>

<style lang="scss">
	//
</style>